import {init} from 'snabbdom/init'
import {classModule} from 'snabbdom/modules/class'
import {propsModule} from 'snabbdom/modules/props'
import {styleModule} from 'snabbdom/modules/style'
import {eventListenersModule} from 'snabbdom/modules/eventlisteners'
import {h} from 'snabbdom/h' // helper function for creating vnodes

import myH from '../pagkage/h';
import myPatch from '../pagkage/patch'

function patchFunctionMain() {
    const container = document.querySelector('#container1');
    const myVnode = myH('h1', {}, '你好');
    console.log(myVnode);
    myPatch(container, myVnode);
}
export default patchFunctionMain;

